import request from '@/request';

export const getUserInfo = () => {
	return request('/api/site/userinfo', null, 'post');
}
export const login = (data) => {
	return request('/api/site/login', data, 'post');
}
export const getMobile = (data) => {
	return request('/api/site/getmobile', data, 'post');
}

export const getConfig = (data) => {
	return request('/api/my/get_config', data, 'post');
}

export const getHelpers = () => {
	return request('/api/my/helpers', null, 'post');
}
export const saveUserInfo = (data) => {
	return request('/api/site/userinfo_save', data, 'post');
}


export const getMyMessage = (data) => {
	return request('/api/my/my_message', data);
}
export const getMyMessageDetail = (data) => {
	return request('/api/my/message_detail', data);
}

export const messageSetRead = () => {
	return request('/api/my/message_set_read');
}

export const messageDel = (data) => {
	return request('/api/my/message_del', data);
}

export const getPost = (data) => {
	return request('/api/my/my_post', data);
}

export const setPostIsShow = (data) => {
	return request('/api/my/set_post_is_show', data);
}

export const myPostDel = (data) => {
	return request('/api/my/my_post_del', data);
}


export const myAdoptApply = (data) => {
	return request('/api/my/my_adopt_apply',data);
}
export const myPublish = (data) => {
	return request('/api/my/my_publish', data);
}
export const myPublishSetStatus = (data) => {
	return request('/api/my/my_publish_set_status', data);
}
export const myPublishDel = (data) => {
	return request('/api/my/my_publish_del', data);
}
